FROM ubuntu:18.04

WORKDIR /

RUN apt  -y update && apt -y install iputils-ping net-tools wget
RUN wget https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.9.25-e7872729.tar.gz
RUN tar  zxvf geth-alltools-linux-amd64-1.9.25-e7872729.tar.gz &&\
    mv   geth-alltools-linux-amd64-1.9.25-e7872729 /geth_bin
 
ADD ./genesis_pow.json /genesis_pow.json

ADD ./ENTRYPOINT.sh /ENTRYPOINT.sh
RUN sed -i 's/\r//' /ENTRYPOINT.sh

ENTRYPOINT /ENTRYPOINT.sh
